<script setup lang="ts">
const { text = '刷新', click = () => {} } = defineProps<{
  text?: string
  click?: () => void
}>()

const iconProps = SIconPropsConst.Reload
</script>

<template>
  <x-collapse-btn
    :icon-props="iconProps"
    :text="text"
    :btn-props="{
      text: true
    }"
    collapse
    :click="
      (evt) => {
        evt.stopPropagation()
        click()
      }
    "
  />
</template>

<style scoped lang="scss"></style>
